package com.tmptSource.service.intf;

import java.util.Map;

import com.tmpt.dto.Result;
import com.tmptSource.dto.*;

public interface I${classNameFirstWordUpper}Service {

	public Result<${classNameFirstWordUpper}Dto> pagination(${classNameFirstWordUpper}Dto ${classNameFirstWordLower}Dto,PageDto pageDto);

	public Result<${classNameFirstWordUpper}Dto> pagination(${classNameFirstWordUpper}Dto ${classNameFirstWordLower}Dto,PageDto pageDto,Map<String,Object> paramMap);

	public Result<${classNameFirstWordUpper}Dto> selectAll();

	public Result<${classNameFirstWordUpper}Dto> selectById(long id);

	public Result<${classNameFirstWordUpper}Dto> addData(${classNameFirstWordUpper}Dto ${classNameFirstWordLower}Dto);

	public Result<${classNameFirstWordUpper}Dto> editData(${classNameFirstWordUpper}Dto ${classNameFirstWordLower}Dto);

	public Result deleteById(long id,String adminMan);

	<#list columnList as column>
	<#if column.dataResource?exists && column.dataResource==2 && column.optionsSql?exists && column.optionsSql!='' >
	/**
	 *页面上查询列的值，动态加载，sql语句读数据库配置而来
	*/
	public java.util.List select4${column.propertyName}();
	</#if>
	</#list>
}
